$('#register').click(function () {
	var formData = new FormData($(".agileits-login form")[0]);
	formData.append("expertName",$("#expert_name").val());
	formData.append("password",$("#password").val());
	formData.append("workField",$("#introduction").val());
	formData.append("introduction",$("#introduction").val());
	formData.append("workPlace",$("#work_place").val());
	formData.append("imgPath",$("#img_path")[0].files[0]);
	formData.append("email",$("#email").val());
    $.ajax({
        url: "/citrusmonitor/expert.do?method=register",
        type: "post",
        data:formData,
		contentType:false,
		processData:false,
        dataType: "json",
        success: function (msg) {
            if (msg.status==1) {
                alert("注册专家成功，请等待审核");
                window.location.href ="login.html";
            } else {
                alert("添加失败" );
            }
        },
        error:function(){
            alert("资源加载失败！！！");
        }
    })
})